<?php  include VIEWPATH.'common/head.php';  ?>
<script type="text/javascript">

</script>
<link href="<?php echo FONT_PATH.'static/bootstrap';?>/css/layer.css" rel="stylesheet" >
<link href="<?php echo FONT_PATH.'static/bootstrap';?>/css/layer.ext.css" rel="stylesheet">
<style>span.ts{display: none;}</style>
<body class="fixed-sidebar full-height-layout gray-bg  pace-done" style="overflow:hidden">

    <div class="pace  pace-inactive">
        <div class="pace-progress" data-progress-text="100%" data-progress="99" style="width: 100%;">
            <div class="pace-progress-inner"></div>
        </div>
        <div class="pace-activity"></div>
    </div>
    <?php
        $userData = getLoginUser();
        $userDetail = empty($userData) ? array() : $this->UserModel->getIdUser($userData['uid']);
        ?>
    <div id="wrapper">

        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="slimScrollDiv" style="position: relative; width: auto; height: 100%;">
                <div class="sidebar-collapse" style="width: auto; height: 100%;">
                    <ul class="nav" id="side-menu" style="display: block;">
                        <li class="nav-header">
                            <div class="dropdown profile-element">
                                <?php $imgPath = empty($userDetail['avator']) ? FONT_UPLOAD_PATH.'static/noavatar_middle.gif' : IMG_URL.$userDetail['avator'];?>
                                <span><img alt="image" class="img-circle" src="<?php echo $imgPath; ?>" width="64" height="64"></span>
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                   <span class="clear">
                                      <span class="block m-t-xs"><strong class="font-bold"><?php echo $userData['nickname'] ? $userData['nickname'] : $userData['nickname'];?></strong></span>
                                      <span class="text-muted text-xs block">管理员<b class="caret"></b></span>
                                   </span>
                                </a>
                                <ul class="dropdown-menu m-t-xs">
                                    <li><a class="J_menuItem" href="#">个人资料</a></li>
                                    <li class="divider"></li>
                                    <li><a href="index.php?c=login&m=login_out">安全退出</a></li>
                                </ul>
                            </div>
                            <div class="logo-element">H+</div>
                        </li>
                        <li>
                            <a href="/">
                                <i class="fa fa-home"></i>
                                <span class="nav-label">主页</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-list"></i>
                                <span class="nav-label">系统设置</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=sys&m=version_list">版本升级</a></li>
                                <li><a class="J_menuItem" href="index.php?c=sys&m=post_beautify">美化数据</a></li>
                                <li><a class="J_menuItem" href="index.php?c=sys&m=post_auto_beautify">导入帖子美化</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-user-plus"></i>
                                <span class="nav-label">账户管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=user&m=admin_list">管理员列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=user&m=user_list">用户列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=user&m=write_list">白名单列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=user&m=admin_log">操作记录</a></li>
                                <li><a class="J_menuItem" href="index.php?c=report&m=get_list">举报管理</a></li>
                                <li><a class="J_menuItem" href="index.php?c=appLog&m=get_list">app日志</a></li>
                                <li><a class="J_menuItem" href="index.php?c=user&m=post_review">发帖审核</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-tags"></i>
                                <span class="nav-label">标签管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=tag&m=category_list">分类列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=tag&m=tag_list">标签列表</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-folder-open"></i>
                                <span class="nav-label">话题管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=topic&m=category_list">分类列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=topic&m=topic_list">话题列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=topic&m=recommend_topic_list">话题聚合页</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-picture-o"></i>
                                <span class="nav-label">图库管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=imgList&m=index">图库列表</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-file-audio-o"></i>
                                <span class="nav-label">帖子管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=post&m=post_list">帖子列表</a></li>
                                <li><a class="J_menuItem" href="index.php?c=post&m=index">帖子审核</a></li>
                                <li><a class="J_menuItem" href="index.php?c=comment&m=index">评论管理</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <i class="fa fa-book"></i>
                                <span class="nav-label">任务管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level collapse">
                                <li><a class="J_menuItem" href="index.php?c=task&m=action">操作管理</a></li>
                                <li><a class="J_menuItem" href="index.php?c=task&m=prize">奖励管理</a></li>
                                <li><a class="J_menuItem" href="index.php?c=task&m=task">任务管理</a></li>
<!--                                <li><a class="J_menuItem" href="index.php?c=task&m=goods">领奖列表</a></li>-->
                            </ul>
                        </li>

                    </ul>
                </div>

            </div>
        </nav>
        <!--左侧导航结束-->

        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0)"><i class="fa fa-bars"></i></a>
                        <form role="search" class="navbar-form-custom" method="post" action="#">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning"></span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="index.php?c=notification&m=notific_list">
                                            <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i></button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="index.php">主页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i></button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span></button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a></li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
                    </ul>
                </div>
                <a href="index.php?c=login&m=login_out" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="index.php?c=index&m=index_data" frameborder="0" data-id="index.php" seamless=""></iframe>
            </div>
            <div class="footer">
                <div class="pull-right">© 2016 <a href="http://www.nuanguang.vip/" target="_blank">www.nuanguang.vip/</a>
                </div>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>

    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/plugins/metisMenu/jquery.metisMenu.js" type="text/javascript" ></script>
    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/plugins/slimscroll/jquery.slimscroll.min.js" type="text/javascript" ></script>
    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/plugins/layer/layer.min.js" type="text/javascript" ></script>
    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/hplus.min.js" type="text/javascript" ></script>
    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/contabs.min.js" type="text/javascript" ></script>
    <script src="<?php echo FONT_PATH.'static/bootstrap';?>/js/plugins/pace/pace.min.js"></script>

</body>
</html>